package simple.alert.rule.condition;

public class NotConditionDecorator extends ConditionDecorator {

	public NotConditionDecorator(ICondition decoratedOperator) {
		super(decoratedOperator);
	}

	@Override
	public boolean isMatch(long value) {
		return !decoratedOperator.isMatch(value);
	}

	@Override
	public String getDesc() {
		return "不触达"+decoratedOperator.getDesc();
	}
	
}
